package com.hr.builder;

import org.springframework.stereotype.Component;

import com.espirit.eap.manager.ModelBuilderSupport;
import com.hr.SchedualScope;


@Component
public class SchedualScopeBuilder extends ModelBuilderSupport {
//	static final String DEPARTMENT = "department";
	static final String SCOPE = "scope";
	
	@Override
	public boolean init() {
		return super.setClass(SchedualScope.class, "Schedual Scope", "排班范围");
	}

	@Override
	public void buildFields() {
		super.buildFields();
//		addModelField(DEPARTMENT, "Department", "部门");
		addModelField(SCOPE, "Scope", "时间范围");
	}
	
	@Override
	protected void setDefaultLayoutButtons() {
		
	}
	
//	@Override
//	protected void addSearchFields() {
//		super.addSearchField(convertPropertyToField(DEPARTMENT));
//	}
	
	@Override
	protected void addListFields() {
		addListField(convertPropertyToField(SCOPE));
	}
	
//	@Override
//	protected void addDetailFields() {
//		addDetailField(convertPropertyToField(DEPARTMENT, SCOPE));
//	}
//	
//	@Override
//	protected void gatherExproperties() {
//		exProperties.put(REQUIRED, new String[]{DEPARTMENT, SCOPE});
//	}
	
	
}
